package com.homelock.common.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class PageResp implements Serializable {
	private int num;//开始页码
	private int size;//页码大小
	private List rows;
	private long total;
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public List getRows() {
		return rows;
	}
	public void setRows(List rows) {
		this.rows = rows;
	}
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}

	public PageResp(){
	}

	public PageResp( List rows, long total) {
		this.rows = rows;
		this.total = total;
	}

	/**
	 * 空page
	 * @return
	 */
	public static PageResp emptyPage(){
		return new PageResp(new ArrayList(0),0);
	}
}
